import request from '@/utils/request'
// 获取员工简单列表
export const reqGetEmployeesSimple = () => request({
  method: 'GET',
  url: '/sys/user/simple'
})

// 获取员工列表
export const reqGetEmployeesList = query => request({
  method: 'get',
  url: '/sys/user',
  params: {
    page: query.page,
    size: query.size
  }
})

// 根据ID删除员工
export const reqDelEmployees = id => request({
  method: 'delete',
  url: `/sys/user/${id}`
})

// 新增员工
export const reqAddEmployees = data => request({
  method: 'post',
  url: '/sys/user',
  data
})

// 批量导入员工
export const reqEmployeesUploadExcel = data => request({
  method: 'post',
  url: '/sys/user/batch',
  data
})
